#ifndef SETTINGS_H
#define SETTINGS_H

#include<QSharedPointer>
#include<QSettings>

class Settings
{
private:
    static QSharedPointer<Settings> _instance;
    Settings();
public:
    /* settings for database */
    QString login;
    QString password;
    QString dbname;
    QString hostname;
    QString idPolygon;

    static QSharedPointer<Settings> instance();
    QSettings::Status save();
    QSettings::Status load();

    bool isEmpty();
};

#endif // SETTINGS_H
